<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>城市列表</title>

</head>
<body style="background-color: #666;">

<style>
a {
    font-size: 12px;
}
a:link {
    color: #333333;
    text-decoration: none;
}
a:visited {
    color: #333333;
    text-decoration: none;
}
a:hover {
    color: #fff;
    text-decoration: underline;
}
a:active {
    text-decoration: none;
}
* {
    margin: 0;
    padding: 0;
}
.showcity {
    margin: 10px auto;
    width: 990px;
	background-color: #666;
}
.showcity dl {
    clear: both;
    padding-top: 5px;
}
.showcity dl dt {
    float: left;
    line-height: 25px;
    text-align: center;
    width: 90px;
}
.showcity dl dt a {
    color: #3B8200;
    font-size: 16px;
    font-weight: bold;
}
.showcity dl dd {
    float: left;
    line-height: 25px;
    width: 880px;
    word-spacing: 10px;
}
.showcity dl dd a {
    color: #fff;
    font-size: 14px;
}
</style>

<div class="showcity">
	<dl>
    	<dt><a name="0">全国.</a></dt>
        <dd>	
		     <a href="<?php echo $this->_url('default/city/?do=do&id=0');?>">全国</a> 			 
        </dd>
    </dl>
    <?php foreach($areas_info as $val) { $val =$val['area'];
    if($val['area_type']==1) {
	?>
	<dl>
    	<dt><a name="<?php echo $val['id'];?>"><?php echo $val['area_name'];?>.</a></dt>
        <dd>
            <?php foreach($areas_info as $val2) { $val2 =$val2['area'];
            if($val2['area_type']==2 && $val2['parent_id']==$val['id']) {
	         ?>		
		     <a href="<?php echo $this->_url('default/city/?do=do&id='.$val2['id']);?>"><?php echo $val2['area_name'];?></a> 
            <?php } ?>	
            <?php } ?>			 
        </dd>
    </dl>
    <?php } ?>	
    <?php } ?>


	<div style="clear:both;"></div>
</div>

</body>
</html>